﻿using Asistente.Model.Representation;
using System.Collections.ObjectModel;

namespace Asistente
{
    public class SingleEntitySelectionViewModel
    {
        public Collection<Entity> Entities { get; set; }

        public SingleEntitySelectionViewModel()
        {
            Entities = new Collection<Entity>();
        }

        public void PopulateEntities(Application app)
        {
            foreach (Entity entity in app.Entities)
            {
                entity.IsChecked = false;
                this.Entities.Add(entity);
            }
        }
    }
}
